# -*- mode: snippet -*-
# name: csv: write csv
# key: writer@csv
# key: csv.writer
# contributor: Shuguang Sun
# --
with open(${1:filename}, 'w') as csvfile:
    writer = csv.writer(csvfile, delimiter=${2:","}, quotechar='\"', quoting=csv.QUOTE_MINIMAL)

    writer.writerow($0)
